package com.hs.gs.domain;

import javax.persistence.ManyToOne;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import java.util.Date;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.springframework.format.annotation.DateTimeFormat;

@RooJavaBean
@RooToString
@RooEntity
public class Checking {

    @ManyToOne
    private Employee employee;

    @Temporal(TemporalType.TIMESTAMP)
    @DateTimeFormat(style = "FF", pattern="yyyy/MM/dd hh:mm:ss")
    private Date checkingTime;
    
    @ManyToOne
    private Department department;
    
    private String timerSn;
}
